package com.elifes.hsj.model;

import java.util.List;

/**
 * filter data
 * 
 * @author yangqiang
 * @date 2011-06-07
 */
public class Modify {
	private ModType type;
	private List<String> modValues;

	public enum ModType {
		UPDATE("U"), // (update),
		INCR("+"), // (increment),
		DECR("-"), // (decrement),
		DELETE("D"), // (delete),
		FIND_UPDATE("U?"), 
		FIND_INCR("+?"), 
		FIND_DECR("-?"), 
		FIND_DELETE("D?");

		private String val;

		ModType(String val) {
			this.val = val;
		}

		public String getValue() {
			return this.val;
		}
	}

	public Modify(ModType type, List<String> modValues) {
		this.type = type;
		this.modValues = modValues;
	}

	public ModType getType() {
		return type;
	}

	public List<String> getModValues() {
		return modValues;
	}
	

}
